
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
 
<html>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
    transform = function(key){
        key.style.display="none";
        document.getElementById("txt").style.display="block"
         
    }
</script>
</head>
 
<body>
<input type="button" id="btn" name="xxzx" value="变"  onclick="transform(this)" />
<input type="text" id="txt" name="xxzx" value="" style="display:none" />
</body>
</html>